package com.managedbeans;

import java.io.Serializable;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;

@ManagedBean
@RequestScoped
public class ViewParamManagedBean implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
    @ManagedProperty("#{param.val}")
    private String val;

    @PostConstruct
    public void init() {
        // Do here your thing with those parameters.
        System.out.println("--> "+val);
    }

	public String getVal() {
		return val;
	}

	public void setVal(String val) {
		this.val = val;
	}

	//http://localhost:8080/prime/faces/param.xhtml?val=markus
	
    
}
